package com.rongzhe.house.dictionary.service;

import com.rongzhe.house.dictionary.dao.DictionaryMapper;
import com.rongzhe.house.dictionary.entity.Dictionary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by hggxg on 2017/12/5.
 */
@Service
public class DictServiceImpl implements DictService {

    @Autowired
    private DictionaryMapper dictionaryMapper;

    @Override
    public List<Dictionary> getDictByParentCode(String parentCode) {


        return dictionaryMapper.selectByParentCode(parentCode);
    }
}
